package org.example.ftp.service.impl;

import org.example.ftp.entity.TestEnum;
import org.example.ftp.mapper.TestEnumMapper;
import org.example.ftp.service.TestEnumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestEnumServiceImpl implements TestEnumService {
    @Autowired
    private TestEnumMapper testEnumMapper;
    @Override
    public int add(TestEnum testEnum) {
        return testEnumMapper.add(testEnum);
    }

    @Override
    public TestEnum query(int userId) {
        return testEnumMapper.query(userId);
    }

    @Override
    public int addjson(TestEnum testEnum) {
        return testEnumMapper.addjson(testEnum);
    }

    @Override
    public List<TestEnum> page(int currentPage, int pageSize) {
        return testEnumMapper.page(currentPage,pageSize);
    }
}
